package org.xm.sk.vo.ob;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@ApiModel(value = "BoderPaid", description = "待评论订单")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BoderPaid {

    @ApiModelProperty(value = "订单ID")
    Integer id;

    @ApiModelProperty(value = "预约发型师ID")
    Integer hairdresserId;

    @ApiModelProperty(value = "预约发型师名称")
    String hairdresserName;

    @ApiModelProperty(value = "预约发型师头像图片ID")
    Integer hairdresserImageId;

    @ApiModelProperty(value = "预约门店ID")
    Integer shopId;

    @ApiModelProperty(value = "预约门店名称")
    String shopName;

    @ApiModelProperty(value = "预约电话")
    String phone;

    @ApiModelProperty(value = "预约费用")
    Double mkCost;

    @ApiModelProperty(value = "预约项目名称集")
    Set<String> itemNames = new HashSet<String>(0);

    @ApiModelProperty(value = "到店时间")
    Date mkTime;

    @ApiModelProperty(value = "优惠券使用情况(抵用多少钱)")
    Double couponValue;

    @ApiModelProperty(value = "总价")
    Double price;

    @ApiModelProperty(value = "订单号")
    String ordernum;

    @ApiModelProperty(value = "优惠券码")
    String couponnum;

    public BoderPaid(Integer id, Integer hairdresserId, String hairdresserName,
            Integer hairdresserImageId, Integer shopId, String shopName,
            String phone, Double mkCost, String itemNs, Date mkTime,
            Double couponValue, Double price, String ordernum, String couponnum) {
        this.id = id;
        this.hairdresserId = hairdresserId;
        this.hairdresserName = hairdresserName;
        this.hairdresserImageId = hairdresserImageId;
        this.shopId = shopId;
        this.shopName = shopName;
        this.phone = phone;
        this.mkCost = mkCost;
        if (null != itemNs && 0 < itemNs.length()) {
            String[] items = itemNs.split(",");
            for (String s : items) {
                this.itemNames.add(s);
            }
        }
        this.mkTime = mkTime;
        this.couponValue = couponValue;
        this.price = price;
        this.ordernum = ordernum;
        this.couponnum = couponnum;
    }
}
